﻿
/* 
 本类由PWMIS 实体类生成工具(Ver 4.1)自动生成
 http://www.pwmis.com/sqlmap
 使用前请先在项目工程中引用 PWMIS.Core.dll
 2012/3/30 17:59:35
*/

using System;
using PWMIS.Common;
using PWMIS.DataMap.Entity;

namespace PrjCmd.Entity 
{
  [Serializable()]
  public  class Customers : EntityBase
  {
    public Customers()
    {
            TableName = "Customers";
            EntityMap=EntityMapType.Table;
            //IdentityName = "标识字段名";
    IdentityName="CustomerID";

            //PrimaryKeys.Add("主键字段名");
    PrimaryKeys.Add("CustomerID");

            
    }


      protected override void SetFieldNames()
      {
           PropertyNames = new string[] { "CustomerID","CustomerName","ContactName","Address","PostalCode","Tel" };
      }



      /// <summary>
      /// 
      /// </summary>
      public System.Int32 CustomerID
      {
          get{return getProperty<System.Int32>("CustomerID");}
          set{setProperty("CustomerID",value );}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.String CustomerName
      {
          get{return getProperty<System.String>("CustomerName");}
          set{setProperty("CustomerName",value ,50);}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.String ContactName
      {
          get{return getProperty<System.String>("ContactName");}
          set{setProperty("ContactName",value ,50);}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.String Address
      {
          get{return getProperty<System.String>("Address");}
          set{setProperty("Address",value ,50);}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.String PostalCode
      {
          get{return getProperty<System.String>("PostalCode");}
          set{setProperty("PostalCode",value ,10);}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.String Tel
      {
          get{return getProperty<System.String>("Tel");}
          set{setProperty("Tel",value ,50);}
      }


  }
}
